/*
* @file AnalysisAssets/summary.js
* topoutline/顶部概要
*/
import React from 'react';
import accounting from 'accounting';

export default ({ account }) => {
	const accountingOptions = {
		symbol: "¥",
	}

	return (
	<div>
		{/*<dl>
			<dt>账户总览</dt>
			<dd>
				<span><span className="label">现金：</span> <em>{accounting.formatMoney(account.cash, accountingOptions)}</em></span>
				<span><span className="label">总资产：</span><em>{accounting.formatMoney(account.assetValue, accountingOptions)}</em></span>
				<span><span className="label">资产净值：</span><em>{accounting.formatMoney(account.unitPrice, accountingOptions)}</em></span>
			</dd>
		</dl>*/}
		<dl>
			<dt>持仓统计</dt>
			<dd>
				<span><span className="label">持仓数: </span> <em>{account.opCount}</em></span>
				<span><span className="label">浮盈持仓数: </span> <em>{account.profitOpCount}</em></span>
				<span><span className="label">浮亏持仓数: </span> <em>{account.lossOpCount}</em></span>
			</dd>
		</dl>
	</div>)};
